package com.core.Comprimento;

import com.core.Comprimento.ComprimentoBase;

public class Centimetro extends ComprimentoBase {
	
	public Centimetro(double valueToBeConverted){
		this.valueToBeConverted = valueToBeConverted;
	}
	
	@Override
	public double ToMetro(){
		return this.valueToBeConverted/100;
	}
	
	@Override
	public double ToQuilometro(){
	 return this.valueToBeConverted/100000;
	}

	@Override
	public double ToMilimetro(){
	 return this.valueToBeConverted*10;
	}
	
	@Override
	public double ToPolegada(){
	 return  this.valueToBeConverted*0.3937;
	}
	
	@Override
	public double ToJarda(){
	 return this.valueToBeConverted*0.0109;
	}

	@Override
	public double ToPe(){
	 return this.valueToBeConverted*0.0328;
	}

}

